package org.mj.im.server.netty.processor;

import io.netty.channel.ChannelHandlerContext;

public interface MessageProcessor <T>{
    default void process(ChannelHandlerContext ctx, T data){

    }

    default void process(T data){

    }
    default T transFrom(Object object){
        return (T)object;
    }
}
